﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace  DongleManage.Model.EssentialData
{

		
	/// <summary>
	///  表'TestResultDetail'的实体表示.
	/// </summary>
	/// <remarks>
	/// 该实体由工具生成，尽量不要手动修改
	/// </remarks>
	[DataContract]
	public partial class TestResultDetailEntity 
	{
		#region 属性、变量声明
		#region 主属性 --对应数据表主键
		/// <summary>			
		/// TransactionNumber : 
		/// </summary>
		/// <remarks>表TestResultDetail主键</remarks>
		[DisplayName("")]
		[DataMember]
		public Int32 TransactionNumber
        {
            get;
            set;
        }
		#endregion
		
		#region 属性
		
		/// <summary>
		/// TestNumber : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int64 TestNumber
        {
            get;
            set;
        }
		
		/// <summary>
		/// CustomerID : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 CustomerID
        {
            get;
            set;
        }
		
		/// <summary>
		/// ItemCode : 
		/// </summary>
        [DisplayName("")]
        [StringLength(6, ErrorMessage = "请勿输入超过 6 个字!")]
        
		[DataMember]
		public String ItemCode
        {
            get;
            set;
        }
		
		/// <summary>
		/// ItemName : 
		/// </summary>
        [DisplayName("")]
        [StringLength(64, ErrorMessage = "请勿输入超过 64 个字!")]
        
		[DataMember]
		public String ItemName
        {
            get;
            set;
        }
		
		/// <summary>
		/// UnitName : 例如：厘米(cm)
		/// </summary>
        [DisplayName("例如：厘米(cm)")]
        [StringLength(128, ErrorMessage = "请勿输入超过 128 个字!")]
        
		[DataMember]
		public String UnitName
        {
            get;
            set;
        }
		
		/// <summary>
		/// TestValue : 
		/// </summary>
        [DisplayName("")]
        
		[DataMember]
		public Decimal? TestValue
        {
            get;
            set;
        }
		
		/// <summary>
		/// Scroe : 
		/// </summary>
        [DisplayName("")]
        
		[DataMember]
		public Int32? Scroe
        {
            get;
            set;
        }
		
		/// <summary>
		/// InUserID : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 InUserID
        {
            get;
            set;
        }
		
		/// <summary>
		/// InDate2 : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public DateTime InDate2
        {
            get;
            set;
        }
		
		/// <summary>
		/// EditUserID : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 EditUserID
        {
            get;
            set;
        }
		
		/// <summary>
		/// EditDate : 
		/// </summary>
        [DisplayName("")]
        
		[DataMember]
		public DateTime? EditDate
        {
            get;
            set;
        }
		
		/// <summary>
		/// Evaluation : 
		/// </summary>
        [DisplayName("")]
        [StringLength(32, ErrorMessage = "请勿输入超过 32 个字!")]
        
		[DataMember]
		public String Evaluation
        {
            get;
            set;
        }
		#endregion

		#endregion 属性、变量声明
		
	    public TestResultDetailEntity()
        {
            TransactionNumber = (int)0;
            TestNumber = (long)0;
            CustomerID = (int)0;
            ItemCode = null;
            ItemName = null;
            UnitName = null;
            TestValue = null;
            Scroe = null;
            InUserID = (int)0;
            InDate2 = DateTime.Now;
            EditUserID = (int)0;
            EditDate = null;
            Evaluation = null;
        }
	}
}
